package com.kuhyygy.activity;

import com.kuhyygy.uitl.ActivityCollector;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/**
 * 一、记录当前的位置
 * 二、保存活动
 * 
 * @author acer
 *
 */
public class BaseActivity extends Activity {
	
	private static final String tag = "BaseActivity";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.i(tag, getClass().getName());
		ActivityCollector.addActivity(this);
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		ActivityCollector.removeActivity(this);
	}
	
}
